<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>抽屉</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        html,body{
            height: 100%;
        }
        div{
            width: 200px;
            height: 100%;
            background: #000;
            transform: translateX(-100%);
            animation: run 2s ease 2 forwards ;
            /* animation-direction: reverse; */
        }
        @keyframes run{
            from{
                transform: translateX(-100%);
            }
            to{
                transform:translateX(0)
            }
        }
    </style>
</head>
<body>
    <div></div>
</body>
</html>